/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objectcreate;

/**
 *
 * @author Student
 */
public class RPG extends Videogame{
    public int maxLevel;
    public String expPerLevel;
    
    
    RPG()
    {
        maxLevel=1;
        expPerLevel="1*(level)";
    }
      
    /**
     * @return the maxLevel
     */
    public int getMaxLevel() {
        return maxLevel;
    }

    /**
     * @param maxLevel the maxLevel to set
     */
    public void setMaxLevel(int maxLevel) {
        this.maxLevel = maxLevel;
    }

    /**
     * @return the expPerLevel
     */
    public String getExpPerLevel() {
        return expPerLevel;
    }

    /**
     * @param expPerLevel the expPerLevel to set
     */
    public void setExpPerLevel(String expPerLevel) {
        this.expPerLevel = expPerLevel;
    }
    
    
    public String printgame()
    {
         return name + " \nRPG \nRated: " + rating +" \nThe maximum level is " + maxLevel + " \nIn order to level up, you will need exp equivilant to " + expPerLevel;
    }
    public String export()
    {
        return "RPG," + name + "," + rating + "," + maxLevel + "," +expPerLevel;
    }
    
    
}
